package com.study.service.PSIservice;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.study.model.jdao.PSIjdao.SuppliersDao;
import com.study.model.pojo.PSIpojo.SupplierTab;

@Service
public class SupplierTabService {
	@Autowired
	SuppliersDao sDao;
	
	/**
	 * 查询所有
	 * @return
	 */
	public List<SupplierTab> selectAll(){
		return  (List<SupplierTab>) sDao.findAll();
	}
	
	/**
	 * 根据id查
	 * @param suppid
	 */
	public void selectById(int suppid) {
		sDao.findById(suppid);
	}
}
